import 'package:flutter_code_framework/model_data/resource/resource.dart';

class ResourceList {
  List<ResourceData> resources;
  ResourceList({this.resources});
  ResourceList.fromJson(Map<String, dynamic> json) {
    if (json['resources'] != null) {
      resources = new List<ResourceData>();
      json['resources'].forEach((v) {
        resources.add(new ResourceData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.resources != null) {
      data['resources'] = this.resources.map((v) => v.toJson()).toList();
    }
    return data;
  }
}